/**
 * Created by kitabi on 2017/6/25.
 */


function addOffer(){
    var title = $("#image_title").val();


    var content= editor.$txt.html();
    var id = $("#message_id").val();
    if(title ==""){
        alert("请先填写标题");
        return;
    }



    var param = {
        id:id,
        title:title,

        content:content

    }
    Ajax.ajax({
        url: "/message/addMessage",
        data: param,
        type: "post",
        dataType: 'json',
        success:function(res){
            console.log(res);
            alert(res.data);
            $("#mainTable").bootstrapTable('refresh');
            $staffDialog.modal('hide');
        }

    });



}


$(function () {





});



